<?php
//支付配置
return [
    'ali_charge' => [
        'name'            => '支付宝支付',
        'use_sandbox'     => false, //是否沙箱模式
        'partner'         => '2088950358887465', //收款支付宝用户ID(2088开头)
        'app_id'          => '2021004178657055',
        'sign_type'       => 'RSA2',
        'ali_public_key'  => app()->getRootPath() . 'extend/zfbpay/cert/alipay_public_key.txt', //支付宝公钥
        'rsa_private_key' => app()->getRootPath() . 'extend/zfbpay/cert/private_key.txt', //支付宝公钥
        'limit_pay'       => [],
        'notify_url'      => request()->domain() . '/api/notify/order_notify_ali', //异步回调地址
        // 'return_url'      => env('APP_URL').'/usradmin/payres',  //同步回调地址
        'return_raw'      => false, //是否返回原始数据
    ],

    'wx_charge'  => [
        'name'         => '微信支付',
        //微信支付配置数组
        'app_id'       => '',
        'mch_id'       => '',
        'md5_key'      => '',
        // 'app_cert_pem' => storage_path('security/wechat/apiclient_cert.pem'),
        // 'app_key_pem'  => storage_path('security/wechat/apiclient_key.pem'),
        'sign_type'    => 'MD5',// MD5  HMAC-SHA256
        'limit_pay'    => [ ],
        'fee_type'     => 'CNY',// 货币类型  当前仅支持该字段
        // 'notify_url'   => env('APP_URL') . '/usradmin/notify/wx_charge',
        // 'return_url'      => env('APP_URL').'/usradmin/payres',  //同步回调地址
        'return_raw'   => false,
    ]
];
